#for i in 'abcd':
    #print(i)

''' for i in [1,3,4,6]:
    print(i)
 '''
'''for i, n in enumerate([2,4,5]):
    print(i,n)'''

#print(abs(-20))

'''age = 21
if age >= 20:
    print('you are is how', age)
elif age >= 18:
     print('你是中年人')
else:
    print('青少年')
'''
'''i = 1
sum = 0
while i <= 100:
     sum = sum + i
     i =i+1
print('100的累加值:',sum)
 
while True:
     k = input('请输入一个值:')
     print(' 你输入的值是',k)
     if k == 'q':you
         break
 
for i in 'abc':
    print(i)
for n in [1,2,3,4]:
    print(n,end=' ')
for x,u in enumerate([10,20,30]):
    print(x,u,end=' ')
'''
a = {'name':'uh','age':20,'exs':'male'}
for i  in a :
     print(i,":",a[i])

b = {('name','yh'),('age',20),('sex','mal')}
for v1,v2 in b:
     print(v1,':',v2)

P=['SDS','师德师风','是多少']
for names in P:
    print(names)
print('')

sun = 0
for x in [1,2,3,4,5,6,7,8,9,10]:
    sun = sun + x
    print(sun)

print('')
print('==='*60)

for i in range(11):
    print(i)
print('')
print('===' * 60)
for i in range(0,51,5):
    print(i)
print('')
print('===' * 60)
for i in range(10,0,-1):
    print(i,end=' ')
print('')
print('===' * 60)
      #9*9乘法表
for row in range(1,10):
    for col in range(1,row+1):
        print('{}*{}={:<4}'.format(row,col,row*col),end=' ')
    print('')
print('===' * 26)
for row in range(9,0,-1):
    for col in range(1,row+1):
        print('{}*{}={:<4}'.format(row,col,row*col),end=' ')
    print('')

print('===' * 26)

# 九九乘法表while 输出方式

i = 1

while i <= 9:
    k = 1
    while k <= 9 - i:         #判断应该用多少个空格来填充前面的空白
        print('       ',end = '')
        k += 1
    j = 1
    while j <= i:
        print("%d*%d=%-2d"%(i,j,i*j),end = ' ')
        j += 1
    print()
    i += 1
print('===' * 26)

i = 9
while i >= 1:
    k = 1
    while k <= 9-i:
        print('       ',end = '')
        k += 1
    j = 1
    while j<= i:
        print("%d*%d=%2d"%(i,j,i*j),end = ' ')
        j += 1
    print()
    i -= 1


